﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using RobotView;
using RobotCtrl;

namespace Test_ConsoleView
{
    public partial class Form1 : Form
    {
        private RobotConsole rConsole;

        public Form1()
        {
            InitializeComponent();
            rConsole = new RobotConsole(RunMode.VIRTUAL);
            ConsoleView view = new ConsoleView(rConsole);
            this.Controls.Add(view);
            //ClientSize bestimmt windowgrösse ohne Rahmen
            this.ClientSize = new Size(view.Width, view.Height);
            rConsole.Lamps.Data = 0x55; //Test Lampen 0 und 2 leuchten
            rConsole.Lamps[1] = true;   //Tests lampe 1
            rConsole.Switches[1] = true;
        }
    }
}
